<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>



<div class="header">
	<h3>变更信息</h3>
</div>

<table class="form-table">
	<tr>

		<td class="td1">变更编号：</td>
		<td class="td2">${model.code}</td>
		<td class="td1">状态：</td>
		<td class="td2">${model.status}</td>
	</tr>
	<tr>

		<td class="td1">变更类型：</td>
		<td class="td2">${model.changeType}</td>
		<td class="td1">分类：</td>
		<td class="td2">${model.chgCategoryName}</td>
	</tr>
	<tr>
		<td class="td1">请求人：</td>
		<td class="td2">${model.requesterName}</td>
		<td class="td1">请求日期：</td>
		<td class="td2">${model.requestDate}</td>

	</tr>

	<tr>
		<td class="td1">风险等级：</td>
		<td class="td2">${model.riskRank}</td>
		<td class="td1">优先级：</td>
		<td class="td2">${model.priorityName}</td>
	</tr>
	<tr>
		<td class="td1">关联项目：</td>
		<td class="td2" colspan="3"><isperp:relationLabel
				moduleUrl="project/project" idValue="${model.projectId }"
				displayColumn="name" id="projectId"></isperp:relationLabel></td>


	</tr>
	<tr>
		<td class="td1">变更标题：</td>
		<td class="td2" colspan="3">${model.title}</td>
	</tr>
	<tr>
		<td class="td1">变更描述：</td>
		<td class="td2" colspan="3">${model.description}</td>
	</tr>
	<tr>
		<td class="td1">计划开始时间：</td>
		<td class="td2">${model.planStartTime}</td>
		<td class="td1">计划结束时间：</td>
		<td class="td2">${model.planEndTime}</td>
	</tr>


	<tr>
		<td class="td1">附件：</td>
		<td class="td2" colspan="3"><isperp:uploader
				sourceId="${model.id }" id="changeFiles" readonly="true"></isperp:uploader>
		</td>
	</tr>

</table>


<input name="id" type="hidden" value="${model.id }">
<div class="header">
	<h3>支持人员</h3>
</div>
<table class="form-table">
	<tr>
		<td class="td1">评估人员：</td>
		<td class="td2">${model.supporterName }</td>
	</tr>
	<tr>
		<td class="td1">变更委员会：</td>
		<td class="td2">${model.approverName }</td>
	</tr>
</table>
<div class="header">
	<h3>变更评估</h3>
</div>
<table class="form-table">
	<tr>
		<td class="td1">风险评估：</td>
		<td class="td2">${model.riskEvaluate }</td>
	</tr>
	<tr>
		<td class="td1">影响分析：</td>
		<td class="td2">${model.effectAnalysis }</td>
	</tr>
</table>
<c:if test="${not empty model.executeTime }">
<div class="header">
	<h3>变更实施</h3>
</div>
<table class="form-table">
	<tr style="display:none">
		<td class="td1">实施成本：</td>
		<td class="td2" colspan="3"><isperp:grid
				url="project/costAccountingEntry/listByRelationId?relationId=${model.id }"
				gridId="accountingEntryGrid" cusFormatterActions="true"
				height="auto" showPager="false" rownumbers="false"
				showSearchbar="false" showToolbar="false">

				<jsp:body>
					<isperp:column name="id" title="id" hidden="true"></isperp:column>
					<isperp:column name="cost_subject_name" title="科目" width="90">
					</isperp:column>
					<isperp:column name="amount" title="金额（元）" width="50">
					</isperp:column>
					<isperp:column name="handler_name" title="经手人" width="60">
					</isperp:column>
					<isperp:column name="occurrence_date" title="发生日期" width="60">
						
					</isperp:column>
					<isperp:column name="memo" title="备注" width="120">
					</isperp:column>
					</jsp:body>
			</isperp:grid>
		</td>
	</tr>

	<tr>
		<td class="td1">实施后效果评估：</td>
		<td class="td2" colspan="3">${model.effectEvaluation}</td>
	</tr>
	<tr>
		<td class="td1">实施日期：</td>
		<td class="td2">${model.executeTime }</td>

		<td class="td1">实施者：</td>
		<td class="td2">${model.executerName }</td>
	</tr>



</table>
</c:if>